package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbUserMapper;
import com.dongdongshop.pojo.TbUser;
import com.dongdongshop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @ClassName UserServiceImpl
 * @Author RC
 * @date 2020.12.18 21:01
 */
@Component
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private TbUserMapper tbUserMapper;

    @Override
    public void register(TbUser tbUser) {
        tbUserMapper.insertSelective(tbUser);
    }

    @Override
    public TbUser findUserByUserName(String username) {

        return tbUserMapper.findUserByUserName(username);
    }
}
